
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Introduction · test search plus plugin</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Introduction-to-Webpack.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="Introduction-to-Webpack.html">
            
                <a href="Introduction-to-Webpack.html">
            
                    
                    介绍 Webpack
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="Getting-started.html">
            
                <a href="Getting-started.html">
            
                    
                    第一步
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="Running-a-workflow.html">
            
                <a href="Running-a-workflow.html">
            
                    
                    开始工作流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="Automatic-browser-refresh.html">
            
                <a href="Automatic-browser-refresh.html">
            
                    
                    浏览器自动刷新
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="Requiring-files.html">
            
                <a href="Requiring-files.html">
            
                    
                    引入文件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="Introduction-to-React-JS.html">
            
                <a href="Introduction-to-React-JS.html">
            
                    
                    React JS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="Configuring-react-js.html">
            
                <a href="Configuring-react-js.html">
            
                    
                    配置 React JS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="Optimizing-rebundling.html">
            
                <a href="Optimizing-rebundling.html">
            
                    
                    优化重合并
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="Type-checking-with-flow.html">
            
                <a href="Type-checking-with-flow.html">
            
                    
                    Flow
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="CSS-Fonts-Images.md">
            
                <span>
            
                    
                    CSS, Fonts and Images
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="Loading-CSS.html">
            
                <a href="Loading-CSS.html">
            
                    
                    加载 CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="Automatic-CSS-refresh.html">
            
                <a href="Automatic-CSS-refresh.html">
            
                    
                    自动刷新 CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="Loading-LESS-or-SASS.html">
            
                <a href="Loading-LESS-or-SASS.html">
            
                    
                    加载 LESS 和 SASS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="Inlining-images.html">
            
                <a href="Inlining-images.html">
            
                    
                    内联 images
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="Inlining-fonts.html">
            
                <a href="Inlining-fonts.html">
            
                    
                    内联 fonts
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="Deployment-strategies.md">
            
                <span>
            
                    
                    部署策略
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="Structuring-configuration.html">
            
                <a href="Structuring-configuration.html">
            
                    
                    发布配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="Single-bundle.html">
            
                <a href="Single-bundle.html">
            
                    
                    合并成单文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="Split-app-and-vendors.html">
            
                <a href="Split-app-and-vendors.html">
            
                    
                    分离应用和第三方
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="Multiple-entry-points.html">
            
                <a href="Multiple-entry-points.html">
            
                    
                    多重入口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="Lazy-loaded-entry-points.html">
            
                <a href="Lazy-loaded-entry-points.html">
            
                    
                    懒加载入口文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="Isomorphic-app.html">
            
                <a href="Isomorphic-app.html">
            
                    
                    同构渲染
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="Wing-It-Like-a-Pro.html">
            
                <a href="Wing-It-Like-a-Pro.html">
            
                    
                    进阶
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="Optimizing-development.html">
            
                <a href="Optimizing-development.html">
            
                    
                    优化开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="Hot-loading-components.html">
            
                <a href="Hot-loading-components.html">
            
                    
                    热加载组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="JavaScript-next.html">
            
                <a href="JavaScript-next.html">
            
                    
                    使用下一代 JavaScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="Optimizing-caching.html">
            
                <a href="Optimizing-caching.html">
            
                    
                    优化缓存
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="Matchers.html">
            
                <a href="Matchers.html">
            
                    
                    匹配器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="Lazy-loading-entry-points.md">
            
                <span>
            
                    
                    懒加载入口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="Creating-a-common-bundle.md">
            
                <span>
            
                    
                    创建一个复用代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="Understanding-chunks.html">
            
                <a href="Understanding-chunks.html">
            
                    
                    理解 Chunks
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="Authoring-libraries.html">
            
                <a href="Authoring-libraries.html">
            
                    
                    创建库
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Introduction</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="gitbook-&#x82F1;&#x6587;&#x539F;&#x7248;"><a href="http://christianalfoni.github.io/react-webpack-cookbook/" target="_blank">Gitbook &#x82F1;&#x6587;&#x539F;&#x7248;</a></h1>
<blockquote>
<p><a href="https://fakefish.github.io/react-webpack-cookbook/" target="_blank">zh-cn</a></p>
<p>&#x5982;&#x679C;&#x4F60;&#x60F3;&#x4FEE;&#x6539;&#x4E2D;&#x6587;&#x7248;&#xFF0C;&#x8BF7;&#x63D0;&#x4EA4;PR <a href="https://github.com/fakefish/react-webpack-cookbook" target="_blank">&#x4E2D;&#x6587;&#x7248;&#x672C;</a> &#x6216;&#x8005;&#x5728; <a href="https://github.com/christianalfoni/react-webpack-cookbook/issues" target="_blank">&#x539F; Repo</a> &#x4E2D;&#x63D0; Issues&#x3002;</p>
</blockquote>
<p>&#x8FD9;&#x672C;&#x5C0F;&#x4E66;&#x7684;&#x76EE;&#x7684;&#x662F;&#x5F15;&#x5BFC;&#x4F60;&#x8FDB;&#x5165; React &#x548C; Webpack &#x7684;&#x4E16;&#x754C;&#x3002;&#x4ED6;&#x4EEC;&#x4E24;&#x4E2A;&#x90FD;&#x662F;&#x975E;&#x5E38;&#x6709;&#x7528;&#x7684;&#x6280;&#x672F;&#xFF0C;&#x5982;&#x679C;&#x540C;&#x65F6;&#x4F7F;&#x7528;&#x4ED6;&#x4EEC;&#xFF0C;&#x524D;&#x7AEF;&#x5F00;&#x53D1;&#x4F1A;&#x66F4;&#x52A0;&#x6709;&#x8DA3;&#x3002;</p>
<p>&#x8FD9;&#x672C;&#x5C0F;&#x4E66;&#x4F1A;&#x63D0;&#x4F9B;&#x6240;&#x6709;&#x76F8;&#x5173;&#x7684;&#x6280;&#x80FD;&#x3002;&#x5982;&#x679C;&#x4F60;&#x53EA;&#x662F;&#x5BF9; React &#x611F;&#x5174;&#x8DA3;&#xFF0C;&#x90A3;&#x53EF;&#x4EE5;&#x8DF3;&#x8FC7; Webpack &#x76F8;&#x5173;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x53CD;&#x4E4B;&#x4EA6;&#x7136;&#x3002; &#x5982;&#x679C;&#x60F3;&#x5B66;&#x4E60;&#x66F4;&#x591A;&#x7684;&#x76F8;&#x5173;&#x77E5;&#x8BC6;&#x53EF;&#x4EE5;&#x79FB;&#x6B65; <a href="http://survivejs.com/" target="_blank">SurviveJS - Webpack and React</a>&#x3002; </p>
<h2 id="react">React</h2>
<p>React &#x662F;&#x4E00;&#x4E2A;&#x80FD;&#x591F;&#x8BA9;&#x5F00;&#x53D1;&#x6A21;&#x5757;&#x53D8;&#x6210;&#x7B80;&#x5355;&#x7684;&#x5E93;&#x3002;&#x4E00;&#x65E6;&#x4F60;&#x7406;&#x89E3;&#x4ED6;&#x7684;&#x5DE5;&#x4F5C;&#x539F;&#x7406;&#xFF0C;&#x90A3;&#x4F60;&#x5C31;&#x53EF;&#x4EE5;&#x7528;&#x5B83;&#x642D;&#x5EFA;&#x81EA;&#x5DF1;&#x7684;&#x7A0B;&#x5E8F;&#xFF0C;&#x8FD9;&#x662F;&#x4E0D;&#x540C;&#x7C7B;&#x4F3C; Angular &#x90A3;&#x79CD;&#x8BD5;&#x7740;&#x5305;&#x63FD;&#x4E00;&#x5207;&#x7684;&#x6846;&#x67B6;&#x4E0D;&#x540C;&#x7684;&#x5730;&#x65B9;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x60F3;&#x5F88;&#x5FEB;&#x8FC7;&#x4E00;&#x904D; React &#x7684;&#x77E5;&#x8BC6;&#x70B9;&#xFF0C;&#x90A3;&#x4E48; <a href="http://facebook.github.io/react/docs/tutorial.html" target="_blank">React &#x5B98;&#x65B9;&#x6559;&#x7A0B;</a> &#x662F;&#x4E00;&#x4E2A;&#x5F88;&#x597D;&#x7684;&#x5F00;&#x59CB;&#x3002;</p>
<p>&#x53EF;&#x80FD; React &#x6700;&#x6709;&#x8DA3;&#x7684;&#x4E8B;&#x662F;&#x5B83;&#x4E00;&#x76F4;&#x4F1A;&#x5C1D;&#x8BD5;&#x8C03;&#x6574;&#x4F20;&#x7EDF;&#x7684; web &#x7EC4;&#x4EF6;&#x7684;&#x601D;&#x8DEF;&#x3002;&#x5B83;&#x8BA9;&#x6211;&#x4EEC;&#x91CD;&#x65B0;&#x601D;&#x8003;&#x5173;&#x6CE8;&#x70B9;&#x7684;&#x5206;&#x79BB;&#x3002;&#x5B83;&#xFF08;<a href="https://facebook.github.io/react-native/" target="_blank">React Native</a>&#xFF09;&#x4E5F;&#x4F1A;&#x5F71;&#x54CD; App &#x5F00;&#x53D1;&#x3002; React Native &#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x79CD;&#x4F7F;&#x7528; JavaScript &#x5F00;&#x53D1;&#x539F;&#x751F;&#x5E94;&#x7528;&#x540C;&#x65F6;&#x4FDD;&#x8BC1;&#x4E86;&#x539F;&#x751F;&#x6027;&#x80FD;&#x3002;</p>
<h2 id="webpack">Webpack</h2>
<p>Webpack &#x975E;&#x5E38;&#x5BB9;&#x6613;&#x64CD;&#x4F5C;&#xFF0C;&#x5B83;&#x662F;&#x4E00;&#x4E2A;&#x6A21;&#x5757;&#x5408;&#x5E76;&#x7684;&#x5DE5;&#x5177;&#xFF0C;&#x672C;&#x8D28;&#x5C31;&#x662F;&#x4E00;&#x4E2A;&#x80FD;&#x591F;&#x628A;&#x5404;&#x79CD;&#x7EC4;&#x4EF6;&#xFF08;HTML&#xFF0C;CSS&#xFF0C;JS&#xFF09;&#x6784;&#x5EFA;&#x6210;&#x9879;&#x76EE;&#x3002;&#x6700;&#x65B9;&#x4FBF;&#x7684;&#x662F;&#x4F60;&#x53EA;&#x9700;&#x8981;&#x521D;&#x59CB;&#x5316;&#x914D;&#x7F6E;&#x4E00;&#x6B21;&#xFF0C;Webpack &#x4F1A;&#x66FF;&#x4F60;&#x505A;&#x90A3;&#x4E9B;&#x7E41;&#x7410;&#x7684;&#x4E8B;&#x60C5;&#xFF0C;&#x540C;&#x65F6;&#x4E5F;&#x4FDD;&#x8BC1;&#x4E86;&#x8BA9;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x9879;&#x76EE;&#x4E2D;&#x6DF7;&#x5408;&#x4F7F;&#x7528;&#x5404;&#x79CD;&#x6280;&#x672F;&#x800C;&#x4E0D;&#x5934;&#x75BC;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x5728; Webpack &#x65B9;&#x9762;&#x5B8C;&#x5168;&#x662F;&#x65B0;&#x624B;&#x7684;&#xFF0C;&#x4F46;&#x60F3;&#x5F00;&#x59CB;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;&#x6559;&#x7A0B;&#x7684;&#x8BDD;&#xFF0C;&#x53EF;&#x4EE5;&#x53BB; <a href="https://github.com/petehunt/webpack-howto" target="_blank">Pete Hunt&apos;s guide</a>&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x90A3;&#x91CC;&#x5B66;&#x4E60;&#x5230;&#x4E00;&#x4E9B;&#x57FA;&#x7840;&#x7684;&#x4F7F;&#x7528;&#xFF0C;&#x8FD9;&#x91CC;&#x53EA;&#x662F;&#x90A3;&#x8FB9;&#x7684;&#x4E00;&#x4E2A;&#x8865;&#x5145;&#x3002;</p>
<h2 id="&#x4F5C;&#x8005;">&#x4F5C;&#x8005;</h2>
<p><a href="http://www.christianalfoni.com/" target="_blank">Christian Alfoni</a> and <a href="http://survivejs.com/" target="_blank">Juho Veps&#xE4;l&#xE4;inen</a>.</p>
<h2 id="&#x4E2D;&#x6587;&#x8BD1;&#x8005;">&#x4E2D;&#x6587;&#x8BD1;&#x8005;</h2>
<p><a href="http://fakefish.github.io/" target="_blank">Fakefish</a></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="Introduction-to-Webpack.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 介绍 Webpack">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"介绍 Webpack","level":"1.2","depth":1,"path":"Introduction-to-Webpack.md","ref":"Introduction-to-Webpack.md","articles":[{"title":"第一步","level":"1.2.1","depth":2,"path":"Getting-started.md","ref":"Getting-started.md","articles":[]},{"title":"开始工作流","level":"1.2.2","depth":2,"path":"Running-a-workflow.md","ref":"Running-a-workflow.md","articles":[]},{"title":"浏览器自动刷新","level":"1.2.3","depth":2,"path":"Automatic-browser-refresh.md","ref":"Automatic-browser-refresh.md","articles":[]},{"title":"引入文件","level":"1.2.4","depth":2,"path":"Requiring-files.md","ref":"Requiring-files.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","search-pro","fontsettings","livereload"],"root":"./content","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search-pro":{},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{},"highlight":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"version":"0.0.0"},"title":"test search plus plugin","gitbook":"*"},"file":{"path":"README.md","mtime":"2017-01-24T08:51:37.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-01-24T08:53:13.796Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    

    </body>
</html>

